//默认分页样式
export const pagination = {
    current: 1, //当前页码
    total: 0, // 总条数
    pageSize: 10, //每页中显示10条数据
    showTotal: total => `共${total} 条数据`, //分页中显示总的数据
    showSizeChanger: true,
}



export const vehicleTypeTable = [

    {
        title: '类别代码',
        align: "left",
        dataIndex: 'code',
        width: 150,
    },

    {
        title: '类别名称',
        align: "left",
        dataIndex: 'name',
        width: 200,
    },



    {
        title: '是否免费',
        width: 100,
        align: "center",
        dataIndex: 'isFree',
        scopedSlots: {
            customRender: 'isFree'
        }
    },



    {
        title: '匹配字符',
        dataIndex: 'matchString',
        ellipsis: true,
    },
    {
        title: '默认分类',
        width: 100,
        align: "center",
        dataIndex: 'isDefault',
        scopedSlots: {
            customRender: 'isDefault'
        }
    },


    {
        title: '操作',
        dataIndex: 'operation',
        width: 120,
        scopedSlots: {
            customRender: 'operation'
        }
    }
];




//费用规则表
export const feeRuleTable = [

    {

        align: "left",
        dataIndex: 'errHint',
        width: 50,
        scopedSlots: {
            customRender: 'errHint'
        }
    },

    {
        title: '规则组代码',
        align: "left",
        dataIndex: 'groupCode',
        width: 120,
    },

    {
        title: '规则组名称',
        align: "left",
        dataIndex: 'groupName',

    },

    {
        title: '车辆类型代码',
        align: "left",
        dataIndex: 'vehicleTypeCode',
        width: 120,
    },


    {
        title: '车辆类型名称',
        align: "left",
        dataIndex: 'vehicleTypeName',

    },






    {
        title: '规则免费',
        align: "center",
        dataIndex: 'isFree',
        width: 100,
        scopedSlots: {
            customRender: 'isFree'
        }

    },

    {
        title: '规则条数',
        align: "center",
        dataIndex: 'ruleQuantity',
        width: 100,
    },




    {
        title: '时段规则',
        dataIndex: 'operation',
        align: "center",
        width: 120,
        scopedSlots: {
            customRender: 'operation'
        }
    }
];




//规则时段表
export const ruleTimesTable = [
    {
        title: '计费时段',
        align: "left",
        scopedSlots: {
            customRender: 'timeName'
        },
        width: 150,
    },

    {
        title: '免费规则',
        align: "left",
        scopedSlots: {
            customRender: 'freeRule'
        },
        width: 180,

    },

    {
        title: '起价规则',
        align: "left",
        scopedSlots: {
            customRender: 'firstRule'
        },
        width: 300,
    },


    {
        title: '续费规则',
        align: "left",
        scopedSlots: {
            customRender: 'renewalRule'
        }


    },



    {
        title: '操作',
        dataIndex: 'operation',
        align: "center",
        width: 120,
        scopedSlots: {
            customRender: 'operation'
        }
    }
];




export const areaTable = [

    {
        title: '区域代码',
        align: "left",
        dataIndex: 'code',
        width: 150,
    },

    {
        title: '区域名称',
        align: "left",
        dataIndex: 'name',

    },


    {
        title: '街道数',
        align: "center",
        dataIndex: 'streetTotal',
        width: 120,

    },


    {
        title: '场地数',
        align: "center",
        dataIndex: 'placeTotal',
        width: 120,

    },


    {
        title: '车位数',
        align: "center",
        dataIndex: 'seatTotal',
        width: 120,

    },



    {
        title: '操作',
        dataIndex: 'operation',
        width: 120,
        scopedSlots: {
            customRender: 'operation'
        }
    }
];



export const streetTable = [

    {
        title: '街道代码',
        align: "left",
        dataIndex: 'code',
        width: 150,
    },

    {
        title: '街道名称',
        align: "left",
        dataIndex: 'name',

    },



    {
        title: '所属区域',
        align: "left",
        width: 150,
        scopedSlots: { customRender: 'areaName'}

    },




    {
        title: '场地数',
        align: "center",
        dataIndex: 'placeTotal',
        width: 120,

    },


    {
        title: '车位数',
        align: "center",
        dataIndex: 'seatTotal',
        width: 120,

    },



    {
        title: '操作',
        dataIndex: 'operation',
        width: 120,
        scopedSlots: {
            customRender: 'operation'
        }
    }
];


export const placeTable = [

    {
        title: '场地代码',
        align: "left",
        dataIndex: 'code',
        width: 100,
    },

    {
        title: '场地名称',
        align: "left",
        width: 200,
        dataIndex: 'name',

    },


    {
        title: '计费规则组',
        align: "left",
        width: 120,
        scopedSlots: {
            customRender: 'ruleGroup'
        }

    },




    {
        title: '所属区域',
        align: "left",
        width: 120,
        scopedSlots: {
            customRender: 'area'
        }

    },


    {
        title: '所属街道',
        align: "left",
        width: 120,
        scopedSlots: {
            customRender: 'street'
        }

    },



    {
        title: '详细地址',
        align: "left",
        ellipsis:true,
        scopedSlots: {
            customRender: 'address'
        }


    },


    {
        title: '车位数',
        align: "center",
        dataIndex: 'seatTotal',
        width: 90,

    },



    {
        title: '操作',
        dataIndex: 'operation',
        width: 120,
        scopedSlots: {
            customRender: 'operation'
        }
    }
];



export const seatTable = [

    {
        title: '车位编号',
        align: "left",
        dataIndex: 'code',
        width: 150,
    },


    {
        title: '所属区域',
        align: "left",
        width: 150,
        dataIndex: 'areaName',

    },

    {
        title: '所属街道',
        align: "left",
        width: 150,
        dataIndex: 'streetName',

    },


    {
        title: '所属场地',
        align: "left",
        width: 200,
        dataIndex: 'placeName',

    },
    {
        title: '计费规则组',
        align: "left",
        dataIndex: 'feeGroupName',
        width: 150,


    },




    {
        title: '标注状态',
        align: "left",
        width: 100,
        dataIndex: 'markStatus',

    },

    {
        title: '标注位置',
        align: "left",
        width: 100,
        dataIndex: 'markPosition',

    },

    {
        title: '标注坐标',
        align: "left",

        dataIndex: 'markCoordinate',

    },












    {
        title: '操作',
        dataIndex: 'operation',
        width: 120,
        scopedSlots: {
            customRender: 'operation'
        }
    }
];






export const cashierTable = [



    {
        title: '登录账号',
        align: "left",
        dataIndex: 'account',
        width: 150,
    },


    {
        title: '人员姓名',
        align: "left",
        dataIndex: 'name',
        width: 150,

    },




    {
        title: '管理场地',
        dataIndex: 'placeCodes',
        scopedSlots: {customRender: 'placeCodes'}
    },


    {
        title: '账号状态',
        width: 200,
        align: "center",
        dataIndex: 'status',
        scopedSlots: {
            customRender: 'status'
        }
    },





    {
        title: '操作',
        dataIndex: 'operation',
        width: 200,
        scopedSlots: {
            customRender: 'operation'
        }
    }
];


